package edu.towson.cis.androidagile.helloworldlogin;

import android.app.Activity;
import android.os.Bundle;
import android.widget.Toast;

public class HelloWorldActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.hello_world);
		
		Bundle extras = getIntent().getExtras(); 
		String username = "";

		if (extras != null)
		    username = extras.getString("username");
				
		Toast.makeText(HelloWorldActivity.this, 
				"Hi " + username + ", welcome to my app!", 
				Toast.LENGTH_LONG).show();
	}
}
